
package cs422.group1.projectsquirrel;


import cs422.group1.projectsquirrel.ContactUs.nextQuestionListener;
import android.app.AlertDialog;
import android.app.Activity;
import android.content.DialogInterface;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.ListAdapter;
import android.widget.ListView;


public class Help extends Activity {
	//private Button emailButton;	
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.help);
        //Setting up the references to all of the elements on the current screen.
        //emailButton = (Button)findViewById(R.id.button1);
    }
	
    //for button1
    public void getWhy(View Help)
    {
    	try
    	{

        	Intent intent = new Intent(this.getBaseContext(), ShouldWork.class);
        	startActivity(intent);
    	}
    	
    	catch(Exception e)
    	{
    	}
    }
    
    //for button2
    public void getNeed(View Help)
    {
    	try
    	{

        	Intent intent = new Intent(this.getBaseContext(), WhySquirrels.class);
        	startActivity(intent);
    	}
    	catch (Exception e)
    	{
    
    	}
    }
    
    //for button3
    public void getDiffer(View Help)
    {
    	try
    	{

        	Intent intent = new Intent(this.getBaseContext(), HowTheyDiffer.class);
        	startActivity(intent);
    	}
    	
    	catch (Exception e)
    	{
    		
    	}
    }
    
    //for button4
    public void getOften(View Help)
    {
    	try
    	{

        	Intent intent = new Intent(this.getBaseContext(), HowOften.class);
        	startActivity(intent);
    	}
    	catch (Exception e)
    	{
    		
    	}
    }
    
    //for button5
    public void getSite(View Help)
    {
    	try
    	{

        	Intent intent = new Intent("android.intent.action.VIEW", Uri.parse("http://www.projectsquirrel.org/faq.shtml"));
    		startActivity(intent);
    	}
    	
    	catch (Exception e)
    	{
    		
    	}
    }    
    
}
   
    
